/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.score.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.fosung.frame.common.persistence.CrudDao;
import com.fosung.frame.common.persistence.annotation.MyBatisDao;
import com.fosung.frame.modules.approve.entity.PersonStatistic;
import com.fosung.frame.modules.score.entity.OrganizePersonDetail;

/**
 * 党员申请积分明细DAO接口
 * 
 * @author ygl
 * @version 2017-09-03
 */
@MyBatisDao
public interface OrganizePersonDetailDao extends CrudDao<OrganizePersonDetail> {
	public int insert(OrganizePersonDetail organizePersonDetail);

	public int getPersonCount(String id);

	public int deleteByOrganizeLifeId(String organizeLifeId);

	public List<PersonStatistic> findPersonByOrganize(PersonStatistic personStatistic);

	public List<OrganizePersonDetail> findDistinctBYid(String id);
	
	public OrganizePersonDetail findPersonTotalScore(OrganizePersonDetail person);
	
	public void updateStatusAndScore(OrganizePersonDetail organizePersonDetail);

	public void batchAgreePersonScoreDetail(@Param("organizeLifeId") String organizeLifeId);

	public String findPersonTotal(@Param("id") String id);

	public OrganizePersonDetail findPersonNoShTotalScore(OrganizePersonDetail organizePersonDetail);


}